package com.talent.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.talent.page.Page;
import com.talent.pojo.TrainDetail;
import com.talent.pojo.User;
import com.talent.vo.TrainDetailVo;

public interface TrainDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TrainDetail record);

    int insertSelective(TrainDetail record);

    TrainDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TrainDetail record);

    int updateByPrimaryKey(TrainDetail record);

	void deleteAll(String[] ids);

	List<TrainDetailVo> selectVoByTrainPlanKey(Integer id);

	List<TrainDetailVo> selectTrainDetailPage(@Param("trainDetail")TrainDetailVo trainDetail, @Param("user")User user, @Param("page")Page<TrainDetailVo> page);

	TrainDetailVo selectVoByPrimaryKey(@Param("id")Integer id);
}